package net.tycmc.cty.ctyms.timejob.iems.job;

import java.util.Map;

import net.tycmc.cty.ctyms.timejob.iems.service.OilOpenRateService;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

public class OilOpenRateJob extends QuartzJobBean {
	
	

	@Override
	protected void executeInternal(JobExecutionContext arg0)
			throws JobExecutionException {
		Map<?, ?> datamap = arg0.getJobDetail().getJobDataMap();
		OilOpenRateService  oilOpenRateService = (OilOpenRateService)datamap.get("oilOpenRateService");
		oilOpenRateService.statisticsOilOpenCounts(null);
	}

}
